package com.borya.task.model;

import com.alibaba.fastjson.JSONObject;

/**
 * 自动审核返回实体
 * @author shun
 *
 */
public class RespAudit {
	private String orderId;
	private String result;
	private String desc;
	private int merchantType;
	private int source;
	private int isp;
	private String gztCheckResult;
    private int detailType;

    public int getDetailType() {
        return detailType;
    }

    public void setDetailType(int detailType) {
        this.detailType = detailType;
    }

    public String getOrderId() {
		return orderId;
	}
	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	public String getResult() {
		return result;
	}
	public void setResult(String result) {
		this.result = result;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	

	@Override
	public String toString() {
		return "RespAudit [orderId=" + orderId + ", result=" + result + ", desc=" + desc + ", merchantType="
				+ merchantType + ", source=" + source + ", isp=" + isp + ", gztCheckResult=" + gztCheckResult + "]";
	}
	public static void main(String[] args) {
		RespAudit audit = new RespAudit();
//		audit.setOrderId("123456");
		audit.setResult("1");
//		audit.setDesc("dfsa");
//		audit.setSource(2);
//		audit.setMerchantType(1);
//		audit.setIsp(1);
		String json = JSONObject.toJSONString(audit);
		
//		JSONObject jsono = JSONObject.parseObject(json);
//		jsono.put("xxxx", "xxxx");
//		json= jsono.toJSONString();
		System.out.println(json);
		RespAudit ab = JSONObject.parseObject(json, RespAudit.class);
		System.out.println(ab.toString());
	}
	public int getSource() {
		return source;
	}
	public void setSource(int source) {
		this.source = source;
	}
	public int getMerchantType() {
		return merchantType;
	}
	public void setMerchantType(int merchantType) {
		this.merchantType = merchantType;
	}
	public int getIsp() {
		return isp;
	}
	public void setIsp(int isp) {
		this.isp = isp;
	}
	public String getGztCheckResult() {
		return gztCheckResult;
	}
	public void setGztCheckResult(String gztCheckResult) {
		this.gztCheckResult = gztCheckResult;
	}
	
}
